from django.forms import ModelForm
from django.core.exceptions import ObjectDoesNotExist
from django.core.exceptions import ValidationError, NON_FIELD_ERRORS
from django import forms
from l2ldjango.apps.personalblog.models import *


class CommentForm(ModelForm):
	class Meta:
		model=PersonalBlogComments
		fields = ('comment',)
		#exclude=('mail_from','mail_send_date')

class PersonalBlogForm(ModelForm):
	class Meta:
		model=PersonalBlog
		fields=('title','content','status','comment_enabled','visible_to_all','description','keywords')
